package com.kldy8.kldyw.filmfactory.bean;

import org.json.JSONArray;
import org.json.JSONObject;

import java.util.ArrayList;
import java.util.List;

/**
 * 影视设备
 * Created by Administrator on 2016/9/21.
 */
public class Device
{
    public String device_id;
    public String title;
    public String image;
    public String city;
    public String price;
    public String description;
    public String tag;
    public String url;

    public static Device resolution(JSONObject jsonObject)
    {
        if (jsonObject == null)
        {
            return  null;
        }

        Device m_new = new Device();
        m_new.device_id = jsonObject.optString("device_id");
        m_new.title = jsonObject.optString("title");
        m_new.image = jsonObject.optString("image");
        m_new.city = jsonObject.optString("city");
        m_new.price = jsonObject.optString("price");
        m_new.description = jsonObject.optString("description");
        m_new.tag = jsonObject.optString("tag");
        m_new.url = jsonObject.optString("url");
        return m_new;
    }

}
